import Vue from 'vue'
import App from './App.vue'
// import store from './store'
import './registerServiceWorker'
import axios from 'axios'

//导入qs
import qs from 'qs';
Vue.prototype.$qs = qs;

// axios.defaults.baseURL="http://192.168.2.199:12135/";
axios.defaults.baseURL="http://wxtest.trfriend.com:12135/";//外网
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.config.productionTip = false

//1.集成element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

//2.导入全局样式文件
import '@/styles/index.scss'

//3.集成路由
import router from './router'

//4.集成vuex
import store from './store/index.js'

//导入layui
/* import './layui/css/layui.css'
import './layui/layui.js' */

new Vue({
  el: '#app',
  router,
  store,
  render: function (h) { return h(App) },
  components: { App },
  template: '<App/>'
}).$mount('#app')
